import requests


class LoginApi():
    def __init__(self):
        self.login_url = "http://ihrm-test.itheima.net/api/sys/login"

    def login_api(self,login_data):
        headers = {
            "Content-Type": "application/json"
        }
        return requests.post(url=self.login_url, json=login_data, headers=headers)
